package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.OrderOuterHistoryDO;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 订单外部流转记录Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-19
 */
public interface OrderOuterHistoryRepository extends JpaRepository<OrderOuterHistoryDO, Long>, JpaSpecificationExecutor<OrderOuterHistoryDO> {
    List<OrderOuterHistoryDO> findByOrderId(Long orderId, Sort sort);
}
